[all]
%{ for i in range(cp_count) ~}
${format("${prefix}-cp%02d", i + 1)} ansible_host=${cp_ipv4_addresses[i]} host_name=${format("${prefix}-cp%02d", i + 1)} 
%{ endfor ~}
%{ for i in range(work_count) ~}
${format("${prefix}-work%02d", i + 1)} ansible_host=${work_ipv4_addresses[i]} host_name=${format("${prefix}-work%02d", i + 1)}
%{ endfor ~}

[all:vars]
ansible_user=${ansible_user}
ansible_ssh_common_args=-o StrictHostKeyChecking=no
ansible_ssh_private_key_file=~/.ssh/id_rsa
ansible_python_interpreter=/usr/bin/python3

[control_plane]
%{ for i in range(cp_count) ~}
${format("${prefix}-cp%02d", i + 1)}
%{ endfor ~}

[work_nodes]
%{ for i in range(work_count) ~}
${format("${prefix}-work%02d", i + 1)}
%{ endfor ~}